using Microsoft.UI.Xaml.Data;
using MultiAgentsShared;

namespace MultiAgentsClient.Converter;

public class ChatRoomHighlightConverter : IValueConverter
{
    object IValueConverter.Convert(object value, Type targetType, object parameter, string language)
    {
        if (value is bool IsSelected)
        {
            return IsSelected ? ColorHelpers.ChatRoomBackgroundHighlight : ColorHelpers.ChatRoomBackground;
        }

        throw Debug.ShouldNotHappen();
    }

    object IValueConverter.ConvertBack(object value, Type targetType, object parameter, string language)
    {
        throw new NotImplementedException();
    }
}
